import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/ruoyi";

// 查询大模型配置列表
export function listModelAppInfo(query) {
  return request({
    url: '/model/manage/selectModelAppInfoList',
    method: 'get',
    params: query
  })
}


// 新增aiui配置
export function insertModelAppInfo(data) {
  return request({
    url: '/model/manage/insertModelAppInfo',
    method: 'post',
    data: data
  })
}

//查询详情
export function selectModelAppInfo(uid) {
  return request({
    url: '/model/manage/selectModelAppInfo/' + parseStrEmpty(uid),
    method: 'get',
  })
}


//删除大模型配置
export function deleteModelAppInfo(data) {
  return request({
    url: '/model/manage/deleteModelAppInfo',
    method: 'post',
    data: data
  })
}

// 修改大模型状态
export function updateModelAppInfoStatus(data) {
  return request({
    url: '/model/manage/updateModelAppInfoStatus',
    method: 'post',
    data: data
  })
}


// 修改大模型配置信息
export function updateModelAppInfo(data) {
  return request({
    url: '/model/manage/updateModelAppInfo',
    method: 'post',
    data: data
  })
}

//大模型连接测试
export function isModelCollection(data) {
  return request({
    url: '/model/manage/isModelCollection',
    method: 'post',
    data: data
  })
}
